package com.lzx.es.constant;

/**
 * @author 程序员星星
 * @date 2023/2/9
 * @Description
 */
public class ArticleIndexConstant {
    public static final String MAPPING_TEMPLATE = "{\n" +
            "  \"settings\": {\n" +
            "    \"analysis\": {\n" +
            "      \"analyzer\": {\n" +
            "        \"completion_analyzer\": {\n" +
            "          \"filter\": \"py\",\n" +
            "          \"tokenizer\": \"keyword\"\n" +
            "        },\n" +
            "        \"text_anlyzer\": {\n" +
            "          \"filter\": \"py\",\n" +
            "          \"tokenizer\": \"ik_max_word\"\n" +
            "        }\n" +
            "      },\n" +
            "      \"filter\": {\n" +
            "        \"py\": {\n" +
            "          \"keep_joined_full_pinyin\": \"true\",\n" +
            "          \"none_chinese_pinyin_tokenize\": \"false\",\n" +
            "          \"keep_original\": \"true\",\n" +
            "          \"remove_duplicated_term\": \"true\",\n" +
            "          \"type\": \"pinyin\",\n" +
            "          \"limit_first_letter_length\": \"16\",\n" +
            "          \"keep_full_pinyin\": \"false\"\n" +
            "        }\n" +
            "      }\n" +
            "    }\n" +
            "  },\n" +
            "  \"mappings\": {\n" +
            "    \"properties\": {\n" +
            "      \"id\": {\n" +
            "        \"type\": \"keyword\"\n" +
            "      },\n" +
            "      \"userId\": {\n" +
            "        \"type\": \"integer\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"title\": {\n" +
            "        \"type\": \"text\",\n" +
            "        \"copy_to\": [\n" +
            "          \"all\"\n" +
            "        ],\n" +
            "        \"analyzer\": \"text_anlyzer\",\n" +
            "        \"search_analyzer\": \"ik_smart\"\n" +
            "      },\n" +
            "      \"content\": {\n" +
            "        \"type\": \"text\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"views\": {\n" +
            "        \"type\": \"integer\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"commentCount\": {\n" +
            "        \"type\": \"integer\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"likeCount\": {\n" +
            "        \"type\": \"integer\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"collectCount\": {\n" +
            "        \"type\": \"integer\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"label\": {\n" +
            "        \"type\": \"text\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"grade\": {\n" +
            "        \"type\": \"integer\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"type\": {\n" +
            "        \"type\": \"integer\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"createTime\": {\n" +
            "        \"type\": \"text\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"updateTime\": {\n" +
            "        \"type\": \"text\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"labelTranslation\": {\n" +
            "        \"type\": \"text\",\n" +
            "        \"copy_to\": [\n" +
            "          \"all\"\n" +
            "        ],\n" +
            "        \"analyzer\": \"text_anlyzer\",\n" +
            "        \"search_analyzer\": \"ik_smart\"\n" +
            "      },\n" +
            "      \"status\": {\n" +
            "        \"type\": \"integer\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"gradeTranslation\": {\n" +
            "        \"type\": \"text\",\n" +
            "        \"index\": false\n" +
            "      },\n" +
            "      \"user\": {\n" +
            "        \"type\": \"nested\",\n" +
            "        \"properties\": {\n" +
            "          \"id\": {\n" +
            "            \"type\": \"keyword\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"mobile\": {\n" +
            "            \"type\": \"text\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"nickname\": {\n" +
            "            \"type\": \"text\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"sex\": {\n" +
            "            \"type\": \"text\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"birthday\": {\n" +
            "            \"type\": \"text\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"avatar\": {\n" +
            "            \"type\": \"text\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"email\": {\n" +
            "            \"type\": \"text\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"integral\": {\n" +
            "            \"type\": \"integer\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"introduction\": {\n" +
            "            \"type\": \"text\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"fansCount\": {\n" +
            "            \"type\": \"integer\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"attentionCount\": {\n" +
            "            \"type\": \"integer\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"replyCount\": {\n" +
            "            \"type\": \"integer\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"status\": {\n" +
            "            \"type\": \"text\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"createTime\": {\n" +
            "            \"type\": \"text\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"updateTime\": {\n" +
            "            \"type\": \"text\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"ip\": {\n" +
            "            \"type\": \"text\",\n" +
            "            \"index\": false\n" +
            "          },\n" +
            "          \"address\": {\n" +
            "            \"type\": \"text\",\n" +
            "            \"index\": false\n" +
            "          }\n" +
            "        }\n" +
            "      },\n" +
            "      \"all\": {\n" +
            "        \"type\": \"text\",\n" +
            "        \"analyzer\": \"text_anlyzer\",\n" +
            "        \"search_analyzer\": \"ik_smart\"\n" +
            "      },\n" +
            "      \"suggestion\": {\n" +
            "        \"type\": \"completion\",\n" +
            "        \"analyzer\": \"completion_analyzer\"\n" +
            "      }\n" +
            "    }\n" +
            "  }\n" +
            "}";
}
